﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using C2E2C.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using C2E2C.Data.Mapping;

namespace C2E2C.Data
{
    public class EntityDbSetContainer : IDbSetContainer
    {
        private DbContext context;
        public EntityDbSetContainer(DbContext context)
        {
            this.context = context;
        }

        public IDbSet<TEntity> DbSet<TEntity>() 
            where TEntity : EntityBase
        {
            return this.context.Set<TEntity>();
        }
    }
}
